.todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background-color: var(--background-color);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}

.todo-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

.todo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.todo-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.todo-checkbox {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}

.todo-text {
  font-size: 1rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.completed .todo-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.todo-details {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.priority-chip,
.date-chip,
.tag-chip {
  border-radius: 8px !important;
  margin-right: 0.15rem;
  margin-bottom: 0.15rem;
}

.delete-button {
  color: var(--danger-color);
  border-radius: 50%;
}

.empty-message {
  text-align: center;
  color: #888;
  font-style: italic;
  margin: 2rem 0;
  padding: 2rem;
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .todo-item {
    flex-direction: column;
    align-items: stretch;
  }

  .todo-content {
    margin-bottom: 1rem;
  }

  .todo-details {
    margin-left: 0;
    justify-content: flex-start;
  }

  .delete-button {
    align-self: flex-end;
    margin-left: 0 !important;
  }
}